import request from '@/utils/request'

export const loginApi = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

/**
 * 获取用户信息
 * @returns
 */
export const getUserInfoApi = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}
/** *
 * 获取用户的基本信息  现在写完全是为了显示头像
 * **/
export function getBaseUserInfoApi(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
